package cate.game.role.farm.guildFairyland;

import cate.game.play.proce.play.PlayPO;
import cate.game.role.Role;
import cate.game.role.farm.AbstractFarmFTC;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("公会秘境FTC")
public class GuildFairylandFTC extends AbstractFarmFTC<MyGuildFairylandPO> {
    @NoteField("公会秘境基础ID")
    public int tid;
    @NoteField("是否击杀")
    public boolean killed;
    @NoteField("伤害")
    public long damage;

    public GuildFairylandFTC(Role role, int tid) {
        setup(role);
        this.tid = tid;
    }

    @Override
    protected MyGuildFairylandPO po(Role role) {
        return role.getFarm().guildFairyland;
    }

    @Override
    public void handleResult(Role role, PlayPO playPO) {
        super.handleResult(role, playPO);
        role.getFarm().guildFairyland.onChallengeEnd(tid, killed, damage);
    }
}
